package org.redis.cluster.admin.result;

public class Result {
	
	public final static int SUCCESS_CODE=10000;
	
	public final static int ERROR_CODE=11000;
	
	private int code;
	private Object data;
	private boolean isSuccess;
	
	public Result(int code,Object data,boolean isSuccess) {
		this.code=code;
		this.data=data;
		this.isSuccess=isSuccess;
	}
	
	public void setCode(int code) {
		this.code = code;
	}
	public int getCode() {
		return code;
	}
	public void setData(Object data) {
		this.data = data;
	}
	public Object getData() {
		return data;
	}
	public boolean isSuccess() {
		return isSuccess;
	}
	public void setSuccess(boolean isSuccess) {
		this.isSuccess = isSuccess;
	}
}